import { LAYOUT } from '@/router/constant'

const RouterName = 'dashboard'
const routes = [
  {
    path: '/dashboard',
    name: RouterName,
    component: LAYOUT,
    meta: {
      title: '控制台',
      icon: 'icon-dashboard',
      sortIndex: 1,
      affix: true
    },
    children: [
      {
        path: '',
        name: `${RouterName}index`,
        component: () => import('@/views/dashboard/index.vue'),
        meta: {
          title: '控制台-首页',
          requireAuth: true
        }
      }
    ]
  }
]

export default routes
